﻿using System;
using System.Collections.Generic;
using System.Text;

namespace FeCMS.Common.Interface
{
    /// <summary>
    ///     过滤接口
    /// </summary>
    public  interface IFilter<T>
    {
        /// <summary>
        ///     对比，并返回对比的结果
        /// </summary>
        /// <typeparam name="T">类型</typeparam>
        /// <param name="t">对象</param>
        /// <returns></returns>
        bool Compare(T t);

        /// <summary>
        ///     对比，并返回对比的结果,与中断指令
        /// </summary>
        /// <param name="t">类型</param>
        /// <param name="isBreak">中断指令</param>
        /// <returns></returns>
        bool Compare(T t, out bool isBreak);
    }
}
